<?php


namespace app\app\controller;


class Blueray extends Base
{
    public function __construct()
    {
        parent::__construct();
    }

    public function getVodPath(){
        $urlPath = input('urlPath','','trim');
        if(empty($urlPath)){
            $this->error('请求出错');
        }
        $path = file_get_contents('http://www.jingyuxitong.com/api/?key=LjEdBZv6qtLYe5nZMC&url='.urlencode($urlPath));

        if(empty($path)){
            $this->error('剧集获取失败！');
        }
        $this->success('获取成功',json_decode($path,true));
    }
}